package cn.edu.sgu.www.mhxysy.dto.chongwu_shizhuang;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class ChongwuShizhuangViewAttributeDTO implements DataTransferObject {

    @ApiModelProperty(value = "ID")
    private Integer id;

    /**
     * 属性上限
     */
    @Positive(message = "属性上限" + CustomMessages.ILLEGAL)
    @NotNull(message = "属性上限" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "属性上限", required = true)
    private Integer min;

    /**
     * 属性下限
     */
    @Positive(message = "属性下限" + CustomMessages.ILLEGAL)
    @NotNull(message = "属性下限" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "属性下限", required = true)
    private Integer max;

    /**
     * 时装等级
     */
    @Positive(message = "时装等级" + CustomMessages.ILLEGAL)
    @NotNull(message = "时装等级" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "时装等级", required = true)
    private Integer grade;

    /**
     * 属性ID
     */
    @Positive(message = "属性ID" + CustomMessages.ILLEGAL)
    @NotNull(message = CustomMessages.PROPERTY_ID_NOT_NULL)
    @ApiModelProperty(value = "属性ID", required = true)
    private Integer propertyId;
}